import request from '@/utils/request'

// 查询商品采购详情列表
export function listProductInto(query) {
  return request({
    url: '/trace/productInto/list',
    method: 'get',
    params: query
  })
}

// 查询通过检查的商品采购详情列表
export function listProductIntoPass(query) {
  return request({
    url: '/trace/productInto/listpass',
    method: 'get',
    params: query
  })
}

// 重新查询商品采购详情列表
export function listProductInto2(query) {
  return request({
    url: '/trace/productInto/list2',
    method: 'get',
    params: query
  })
}

// 查询商品采购详情详细
export function getProductInto(id) {
  return request({
    url: '/trace/productInto/' + id,
    method: 'get'
  })
}

// 新增商品采购详情
export function addProductInto(data) {
  return request({
    url: '/trace/productInto',
    method: 'post',
    data: data
  })
}

// 修改商品采购详情
export function updateProductInto(data) {
  return request({
    url: '/trace/productInto',
    method: 'put',
    data: data
  })
}

// 删除商品采购详情
export function delProductInto(id) {
  return request({
    url: '/trace/productInto/' + id,
    method: 'delete'
  })
}
